$primary-color: #8ac24e;
$secondary-color: #64b3f4;
$third-color: #d64680;

body {
  background-image: url(../img/corn.png);
  background-repeat: no-repeat;
  background-size: 320px 300px;
  background-position: 0 200px;

  main {
    .nav-main {
      position: relative;
      display: flex;
      align-items: center;
      margin-top: 15px;
      margin-bottom: 30px;
      width: 100%;
      height: 55px;
      padding: 10px;
      background-color: $secondary-color;
      border-radius: 10px;
      color: white;
      .btn-back-to-index {
        position: absolute;
        top: 50%;
        left: 20px;
        transform: translateY(-50%);
        font-size: 18px;
        border: none;
        background-color: transparent;
        color: white;

        &:hover {
          cursor: pointer;
        }
      }
      h3 {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      .dropdown {
        position: absolute;
        top: 165%;
        right: 20px;
        transform: translateY(-50%);
        color: white;
        height: 155px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-content: center;
        .drop-first-item {
          display: flex;
          justify-content: space-between;
          align-items: center;
          width: 100px;
          height: 30px;
          padding: 5px 10px;
          border-radius: 5px;
          background-color: $primary-color;
          &:hover {
            cursor: pointer;
          }
        }
        .drop-list {
          color: rgb(51, 51, 51);
          background-color: #fff;
          border-radius: 5px;
          box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.35);
          display: none;
          padding: 5px 0px;
          li {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100px;
            height: 35px;
            padding: 5px 10px;

            &:hover {
              cursor: pointer;
              background-color: #ccc;
            }
          }
        }
      }
    }
    .main-content {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      align-items: center;
      width: 100%;
      .exam-box {
        width: 245px;
        height: 215px;
        background-color: #fff;
        border-radius: 5px;
        margin-right: 12.5px;
        margin-bottom: 12.5px;

        &:nth-of-type(3n) {
          margin-right: 0;
        }

        .eb-row {
          width: 100%;
          height: 43px;
          padding: 0px 10px;
          line-height: 43px;
          font-size: 14px;
          border-bottom: 1px solid #ccc;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          font-size: 12px;
          span {
            color: darkred;
          }
          &:first-of-type {
            font-weight: bold;
            border-top-left-radius: 5px;
            border-top-right-radius: 5px;
          }
          &:last-of-type {
            color: lightgoldenrodyellow;
            border-bottom-left-radius: 5px;
            border-bottom-right-radius: 5px;
            text-align: center;
            background-color: $primary-color;
            border-bottom: none;
            color: white;
            &:hover {
              cursor: pointer;
            }
          }
          &.tested {
            background-color: #ccc;
            color: white;
          }
        }
      }
      .past {
        .eb-row {
          &:last-of-type {
            color: $third-color;
            background-color: #ccc;
          }
        }
      }
    }
  }
}
